package com.song.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class TestController {
	
	
	
	@RequestMapping("/song/testdo")
	public String testdo( ModelMap modelMap)
	{
		Map<String,Object> map = new HashMap<String,Object>();
		map.put("id", 1);
		map.put("name", "good");
		modelMap.addAttribute("data", map);
		return "hello";
		
	}
}
 